<template>
	<view class="p2">
		<view class="p-15-10 f-bt bf bs10 f-y-c" @click="hnadAddgoods">
			<view class="f-g-1">
				<view class="f15 wei">普通商品</view>
				<view class="c9 f12 mt5">按件售卖，如：西红柿炒鸡蛋，珍珠奶茶</view>
			</view>
			<view class="f-g-0"><u-icon name="arrow-right" size="16"></u-icon></view>
		</view>
		<view class="p-15-10 f-bt bf bs10 f-y-c mt20" @click="hnadAddTc">
			<view class="f-g-1">
				<view class="f15 wei">套餐商品</view>
				<view class="c9 f12 mt5">多个商品组合，如：汉堡+可乐+冰淇淋</view>
			</view>
			<view class="f-g-0"><u-icon name="arrow-right" size="16"></u-icon></view>
		</view>
		<view class="p-15-10 bf bs10 mt20">
			<view class="f16 wei">商品扩展</view>
			<view class="f-raw mt20">
				<view class="w50 flex mb20" @click="handGo('spgg')">
					<view class="f-g-0 mr5"></view>
					<view class="f-g-1">
						<view>规格管理</view>
						<view class="c9 mt5">管理商品规格</view>
					</view>
				</view>
				<view class="w50 flex mb20" @click="handGo('spsx')">
					<view class="f-g-0 mr5"></view>
					<view class="f-g-1">
						<view>属性管理</view>
						<view class="c9 mt5">管理商品属性</view>
					</view>
				</view>
				<view class="w50 flex mb20" @click="handGo('spbq')">
					<view class="f-g-0 mr5"></view>
					<view class="f-g-1">
						<view>标签管理</view>
						<view class="c9 mt5">管理商品标签</view>
					</view>
				</view>
				<view class="w50 flex mb20" @click="handGo('spjb')">
					<view class="f-g-0 mr5"></view>
					<view class="f-g-1">
						<view>角标管理</view>
						<view class="c9 mt5">管理商品角标</view>
					</view>
				</view>
				<view class="w50 flex mb20" @click="handGo('spdw')">
					<view class="f-g-0 mr5"></view>
					<view class="f-g-1">
						<view>单位管理</view>
						<view class="c9 mt5">管理商品单位</view>
					</view>
				</view>
			</view>
		</view>
		<!-- <view class="p-15-10 bf bs10 mt20">
			<view class="f16 wei">高效录菜 推荐使用</view>
			<view class="f-raw mt20">
				<view class="w50 flex mb20">
					<view class="f-g-0 mr5">1</view>
					<view class="f-g-1">
						<view>美团</view>
						<view class="c9 mt5">导入美团商品</view>
					</view>
				</view>
				<view class="w50 flex mb20">
					<view class="f-g-0 mr5">2</view>
					<view class="f-g-1">
						<view>美团</view>
						<view class="c9 mt5">导入饿了么商品</view>
					</view>
				</view>
				<view class="w50 flex mb20">
					<view class="f-g-0 mr5">3</view>
					<view class="f-g-1">
						<view>自动录菜</view>
						<view class="c9 mt5">拍菜单识别录菜</view>
					</view>
				</view>
				<view class="w50 flex mb20">
					<view class="f-g-0 mr5">4</view>
					<view class="f-g-1">
						<view>手动新增</view>
						<view class="c9 mt5">批量手动新增</view>
					</view>
				</view>
				<view class="w50 flex mb20">
					<view class="f-g-0 mr5">5</view>
					<view class="f-g-1">
						<view>从样板店导入</view>
						<view class="c9 mt5">同时导入商品信息</view>
					</view>
				</view>
			</view>
		</view> -->
	</view>
</template>

<script>
	import {
		mapState,
		mapActions
	} from 'vuex'
	export default {
		name: 'xzlx',
		components: {

		},
		data() {
			return {

			}
		},
		async onLoad(options) {
			this.query = options
			// this.getSpgl()
		},
		async onShow() {

		},
		computed: {


		},
		methods: {
			djgl(v) {
				if (v.i == 'spgl') {
					return this.go({
						t: 4
					})
				}
				this.go({
					url: v.url
				})
			},
			hnadAddgoods() {
				uni.navigateTo({
					url: `/pages/mine/spgl/fbsp?type=1`
				})
			},
			hnadAddTc(){
				uni.navigateTo({
					url: `/pages/mine/spgl/fbtcsp?type=2`
				})
			},
			handGo(t) {
				switch (t) {
					case 'spgg':
						uni.navigateTo({
							url: '/pages/mine/spgl/fbsp-gg'
						})
						break;
					case 'spsx':
						uni.navigateTo({
							url: '/pages/mine/spgl/fbsp-sx'
						})
						break;
					case 'spbq':
						uni.navigateTo({
							url: '/pages/mine/spgl/fbsp-bq'
						})
						break
					case 'spjb':
						uni.navigateTo({
							url: '/pages/mine/spgl/fbsp-jb'
						})
						break
					case 'spdw':
						uni.navigateTo({
							url: '/pages/mine/spgl/fbsp-dw'
						})
						break
				}
			},
			fetchData(){
				
			},
		},
	}
</script>
<style scoped lang="scss">

</style>